//
//  JKAppPresenter.m
//  JKMVPTest
//
//  Created by 王冲 on 2018/9/29.
//  Copyright © 2018年 JK科技有限公司. All rights reserved.
//

#import "JKAppPresenter.h"

#import "JKView.h"

#import "JKModel.h"

@interface JKAppPresenter()

@property (weak, nonatomic) UIViewController *controller;

@end

@implementation JKAppPresenter


- (instancetype)initWithController:(UIViewController *)controller
{
    if (self = [super init]) {
        
        self.controller = controller;
        
        JKView *jkTestView = [[JKView alloc]initWithFrame:CGRectMake(50, 200, [UIScreen mainScreen].bounds.size.width-100, 100)];
        jkTestView.backgroundColor = [UIColor brownColor];
        [self.controller.view addSubview:jkTestView];
        
        JKModel *model = [JKModel new];
        model.name = @"MVP架构模式";
        
        [jkTestView setName:model.name];
        
       
        
    }
    return self;
}

@end
